package util.designpattern.openclosedprinciple20200619;

public class JavaDiscountCourse extends JavaCource {
    public JavaDiscountCourse(Integer id, String name, Double price) {
        super(id, name, price);
    }
    public Double getOrignPrice(){
        return super.getPrice();
    }
    public Double getPrice(){
        return  super.getPrice()*0.61;
    }
}
